package com.android.pinlingqian.model.group;

import com.android.pinlingqian.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/7/5.
 */

public abstract class SecondKillDataCallback extends Callback<SecondKillData> {

    @Override
    public SecondKillData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("killstyring",string);
        SecondKillData data = new Gson().fromJson(string, SecondKillData.class);
        return data;
    }
}

